package cn.novel.bm.domain.novel;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
import java.util.UUID;

/**
 * Created on 2020/7/16 12:36 下午
 *
 * @author barry
 * Description:
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "小说")
public class Novel {

    @Id
    @Type(type = "org.hibernate.type.PostgresUUIDType")
    private UUID novelId;
    @Column(unique = true)
    private String novelTitle;
    private String responsibleEditorId;
    private Integer wordsCount;
    private Integer chaptersCount;
    private Integer assignedChapters;
    private String chiefEditorId;

    private Date createAt;
    private Date updateAt;


}
